<h1><%= 'Editing job'.t %></h1>

<% base_language_only do -%>
  <% form_tag :action => 'update', :id => @job do %>
    <%= render :partial => 'form', :locals => {:is_translation => false} %>
	    <dt><!--submit title--></dt>
			<dd class="submit"><%= submit_tag "Submit Changes" %></dd>
		</dl>
	</fieldset>
  <% end %>
<% end -%>

<% not_base_language do -%>
	<div id="translated_job_details">
	  <h2><%= Locale.language.native_name%></h2>
	  <% form_tag :action => 'update', :id => @job do %>
	    <%= render :partial => 'form', :locals => {:is_translation => true} %>
		    <dt><!--submit title--></dt>
				<dd class="submit"><%= submit_tag "Submit Translations" %></dd>
			</dl>
		</fieldset>
	  <% end %>
	</div>
	
	<div id="base_job_details">
	  <% @job.switch_language(Locale.base_language.code) do -%>
	    <h2><%= Locale.base_language.native_name%></h2>
	    <%= render :partial => 'listing' %>
	  <% end -%>
	</div>
<% end -%>

<ul class="secondary navigation">
<li><%= link_to 'Show'.t, :action => 'show', :id => @job %></li>
<li><%= link_to 'Back'.t, :action => 'list' %></li>
</ul>
